package com.mdms.jsf.managedbeans.user;

import java.util.Map;

import com.mdms.commands.user.ClientContext;
import com.mdms.jsf.managedbeans.BaseMBean;

public class SecurityMBean extends BaseMBean{

	private static final long serialVersionUID = 1L;
	
	private ClientContext clientContext;
	
	private  Map<String,String> rightsMap;
	
	
	public boolean isSecurityGranted(String rightName){
		if(rightsMap!=null){
		return rightsMap.containsKey(rightName);
		}
		return false;
	}


	public ClientContext getClientContext() {
		return clientContext;
	}


	public void setClientContext(ClientContext clientContext) {
		this.clientContext = clientContext;
	}


	public Map<String, String> getRightsMap() {
		return rightsMap;
	}


	public void setRightsMap(Map<String, String> rightsMap) {
		this.rightsMap = rightsMap;
	}
	
	

}
